package org.sidora.core.context;

/**
 * Succesion
 * @author Enric Tartera, Juan Manuel Gimeno, Roger Masgoret
 * @version 1.0
 */
public class Succesion extends StratigraphicRelation{
    
    protected Succesion() {
    }
    
    public boolean isNext(Context context){
        if (super.hasContext(context)){
            return this.getB().equals(context);
            
        } else {
            return false;
        }
    }
    
        public boolean isPrevious(Context context){
        if (super.hasContext(context)){
            return this.getA().equals(context);
            
        } else {
            return false;
        }
    }
    
}
